package com.java.zhuiyun.api.rolerank.mapper;

import com.java.zhuiyun.api.rolerank.entity.RoleRank;
import com.java.zhuiyun.api.rolerank.model.Modelsize;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @InterfaceName RolerankMapper
 * @Description TODO
 * @Author wuwan
 * @Date 2023/9/13 19:40
 **/
@Mapper
public interface RolerankMapper {
    /*
    * @Author wuwan
    * @Description 角色数据查询
    * @Date 2023/9/14 8:34
    * @Return
    * @param null
    */
    List<RoleRank> selectRolerank();
    /*
    * @Author wuwan
    * @Description 添加角色
    * @Date 2023/9/14 8:34
    * @Return
    * @param null
    */
    Integer addRolerank(RoleRank roleRank);
    /*
    * @Author wuwan
    * @Description 获取已有角色等级递增升级
    * @Date 2023/9/14 8:48
    * @Return
    * @param null
    */
    Modelsize selectRolerankCount();
    /*
    * @Author wuwan
    * @Description 修改角色带图片
    * @Date 2023/9/14 8:35
    * @Return
    * @param null
    */
    Integer updateRolerank(RoleRank roleRank);
    /*
    * @Author wuwan
    * @Description 修改数据不带图片
    * @Date 2023/9/14 8:35
    * @Return
    * @param null
    */
    Integer updateRoleranks(RoleRank roleRank);


    RoleRank getRoleData(Integer roleLevel);
}
